const app = getApp();
var token = wx.getStorageSync("token");
function request(url, type, data = {}, callback) {
  wx.request({
    url,
    method: type,
    header: {
    //   "X-Nideshop": app.globalData.token
        "X-Nideshop": token
    },
    data,
    success: function (res) {
      callback(res)
    }
  })
}
module.exports = {
  request
}